/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.ucue.ptc.rest;

import java.util.Set;
import javax.ws.rs.core.Application;

/**
 *
 * @author edwin
 */
@javax.ws.rs.ApplicationPath("webresources")
public class ApplicationConfig extends Application {

    @Override
    public Set<Class<?>> getClasses() {
        Set<Class<?>> resources = new java.util.HashSet<Class<?>>();
        // following code can be used to customize Jersey 1.x JSON provider:
        try {
            Class jacksonProvider = Class.forName("org.codehaus.jackson.jaxrs.JacksonJsonProvider");
            resources.add(jacksonProvider);
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        addRestResourceClasses(resources);
        return resources;
    }

    /**
     * Do not modify addRestResourceClasses() method.
     * It is automatically re-generated by NetBeans REST support to populate
     * given list with all resources defined in the project.
     */
    private void addRestResourceClasses(Set<Class<?>> resources) {
        resources.add(edu.ucue.ptc.rest.RutaResource.class);
        resources.add(edu.ucue.ptc.rest.EmpleadoResource.class);
        resources.add(edu.ucue.ptc.rest.LoginResource.class);
        resources.add(edu.ucue.ptc.rest.CrearVisitaResource.class);
        resources.add(edu.ucue.ptc.rest.ProductoResource.class);
        resources.add(edu.ucue.ptc.rest.ClienteResource.class);
        resources.add(edu.ucue.ptc.rest.ObjetivoEmpleadoResource.class);
        resources.add(edu.ucue.ptc.rest.DireccionesResource.class);        
        resources.add(edu.ucue.ptc.rest.GPedidoResource.class);
        resources.add(edu.ucue.ptc.rest.PedidoResource.class);
        resources.add(edu.ucue.ptc.rest.DetallePedidoResource.class);
        resources.add(edu.ucue.ptc.rest.CrearClienteResource.class);
        resources.add(edu.ucue.ptc.rest.CrearDireccionResource.class);
    }

    /**
     * Do not modify this method. It is automatically generated by NetBeans REST support.
     */
    private Set<Class<?>> getRestResourceClasses() {
        Set<Class<?>> resources = new java.util.HashSet<Class<?>>();
        resources.add(edu.ucue.ptc.rest.LoginResource.class);
        resources.add(edu.ucue.ptc.rest.CrearDireccionResource.class);
        resources.add(edu.ucue.ptc.rest.ProductoResource.class);
        resources.add(edu.ucue.ptc.rest.ObjetivoEmpleadoResource.class);
        resources.add(edu.ucue.ptc.rest.CrearClienteResource.class);
        resources.add(edu.ucue.ptc.rest.RutaResource.class);
        resources.add(edu.ucue.ptc.rest.ClienteResource.class);
        resources.add(edu.ucue.ptc.rest.DireccionesResource.class);
        resources.add(edu.ucue.ptc.rest.CiudadesResource.class);
        resources.add(edu.ucue.ptc.rest.EmpleadoResource.class);
        resources.add(edu.ucue.ptc.rest.GPedidoResource.class);
        resources.add(edu.ucue.ptc.rest.CrearVisitaResource.class);
        resources.add(edu.ucue.ptc.rest.DetallePedidoResource.class);
        resources.add(edu.ucue.ptc.rest.PedidoResource.class);
        return resources;
    }
    
}
